<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id"
                   data-rule="required"
                   data-source="user/user/index"
                   data-field="nickname"
                   data-primary-key="id"
                   data-search-field="nickname,mobile"
                   data-format-item="{nickname}({mobile})"
                   class="form-control selectpage"
                   name="row[user_id]"
                   type="text"
                   value="{$row.user_id|htmlentities}">
<!--            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">-->
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('School')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-school" class="form-control" name="row[school]" type="text" value="{$row.school|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Detail')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-detail" class="form-control" name="row[detail]" type="text" value="{$row.detail|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sort')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sort" class="form-control" name="row[sort]" type="number" value="{$row.sort|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否选项')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <!-- 是(1) -->
                <label for="radio-opt_for-1" style="margin-right: 20px;">
                    <input type="radio" name="row[opt_for]" id="radio-opt_for-1" value="1" {if isset($row['opt_for']) && $row['opt_for'] == 1}checked{/if} />
                    {:__('是')}
                </label>
                <!-- 否(2) -->
                <label for="radio-opt_for-2">
                    <input type="radio" name="row[opt_for]" id="radio-opt_for-2" value="2" {if isset($row['opt_for']) && $row['opt_for'] == 2}checked{/if} />
                    {:__('否')}
                </label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Addtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-addtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[addtime]" type="text" value="{$row.addtime}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
